import 'package:json_annotation/json_annotation.dart';

part 'maintain_order.g.dart';

@JsonSerializable()
class MaintainOrderModel {

  /// 标题
  String title;

  /// 维修号
  String orderNo;

  /// 设备名称
  String name;

  /// 设备编号
  String code;

  /// 设备存放位置
  String location;

  /// 新增时间
  String addTime;

  MaintainOrderModel(
      {required this.title,
        required this.orderNo,
        required this.name,
        required this.code,
        required this.location,
        required this.addTime});

  factory MaintainOrderModel.fromJson(Map<String, dynamic> json) => _$MaintainOrderModelFromJson(json);

  Map<String, dynamic> toJson() => _$MaintainOrderModelToJson(this);

  @override
  String toString() {
    return toJson().toString();
  }
}